package demo09;

import java.util.ArrayList;
import java.util.List;

public class Student {
	private String name;
	private int age;
	private List<String> arr;
	public Student(String name, int age, List<String> arr) {
		super();
		this.name = name;
		this.age = age;
		this.arr = arr;
	}
	public Student(String name) {
		this.name = name;
		this.arr=new ArrayList<String>();
	}
	public Student(List<String> arr) {
		this.arr = arr;
	}
	public Student() {
	}
	public List<String> getArr() {
		return arr;
	}
	public void setArr(List<String> arr) {
		this.arr = arr;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return name;
	}
	public void Str(String s){
		this.name=s.split(",")[0];
	}
}
